/**
 * Created by Administrator on 2016/1/14.
 */
//顶部搜索跳转
$(function(){
    $("#searchBu").click(function(){
        var fenlei=$(".search").find(".ch").text();
        var se=$("#se").val();
        if(fenlei=="供应信息"&&se!=""){
            window.location.href = "../view/supply.jsp?"+encodeURIComponent($.trim(se));
        }else if(fenlei=="企业库"&&se!=""){
            window.location.href = "../view/company.html?"+encodeURIComponent($.trim(se));
        }else if(fenlei=="求购信息"&&se!=""){
            window.location.href = "../view/buy.html?"+encodeURIComponent($.trim(se));
        }else if(fenlei=="行业名师"&&se!=""){
            window.location.href = "../view/teacher.html?"+encodeURIComponent($.trim(se));
        }
    });

//    window.location.href="shenfenxinxi.html?"+encodeURIComponent(result.firstFiveNumber)+"&"+
//        encodeURIComponent(result.lastTwoNumber)+"&"+encodeURIComponent(result.houseId)+"&"+encodeURIComponent(result.idNumber);
//
//    var msg=name.split("&");
//    feeType=msg[0];
//    recordId=msg[1];
//    serviceName=msg[2];
//
//    var se=decodeURIComponent(window.location.search).substring(1);
//    var msg=se.split("&")[0];
//    alert(msg);

});







